#!/usr/bin/python
# --coding:utf-8--



import requests

# 1、使用requests.post方法就可以发送post请求
# 2、from表单，通过request.post中的data来指定的

url = "http://httpbin.org/post"

data = {
    "username": "攻城猴",
    "course": "python",
    "age": 18
}
res = requests.post(url, data=data)
print(res.text)

